Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pyesptool as a programmer option #100

Closed
wants to merge 3 commits into from
Closed

Add pyesptool as a programmer option #100

wants to merge 3 commits into from

Conversation

unreality
Copy link

I found that esptool consistently failed to upload on macos, this adds the python esptool as a programmer option

tools.esptool.program.pattern="{path}/{cmd}" -vvv {program.verbose} -cd {upload.resetmethod} -cb {upload.speed} -cp {serial.port} -ca 0x00000 -cf "{build.path}/{build.project_name}_00000.bin" -ca 0x40000 -cf "{build.path}/{build.project_name}_40000.bin"

tools.pyesptool.cmd=esptool.py
tools.pyesptool.cmd.windows=esptool.exe
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

windows version of command doesn't look right...

@unreality
Copy link
Author

Latest commits should work for windows if they have python installed and available in %PATH%, but I have not been able to test it. Should help with #129 , #95 , #138 #3

@igrr
Copy link
Member

igrr commented Apr 28, 2015

I was looking at the option of packaging esptool.py along with python runtime using pyinstaller. This would remove dependency on Python. Unfortunately, the binaries built using this method don't work on older versions of OS X (~10.6).

@igrr
Copy link
Member

igrr commented Apr 30, 2015

Esptool.py needs to be updated to work around a bug in the SPIEraseArea ROM function: espressif/esptool#33.

@Links2004
Copy link
Collaborator

i build the fixed version for windows:
https://www.dropbox.com/s/jy9e25kcaceftjl/esptool.zip?dl=0

@circuitFlower
Copy link

just an fyi, I started fresh with a new esp8266, and got it up and running on my Ubuntu VM. I think the problem was that I was trying to use this pyesptool solution? At one point it said it was erasing the flash, went through to 100%, then hung. I never got that esp working again.

@rei-vilo
Copy link

rei-vilo commented May 2, 2015

From #78: On Mac OS X, esptools.pyrequireslibusb` and works only with Python 2.7.

@zerog2k
Copy link

zerog2k commented Sep 7, 2015

I'm having a possibly related problem. I'm on ubuntu and esptool-ck will fail to upload, whereas esptool.py will always work fine..

I'm setting up a custom board (10k pullups on ch_pd & reset, 10k pulldown on gpio0).. I hooked up logic analyser, there are some notable differences, but sequence of reset/rts and gpio0/dtr seem to be acceptable for both.

So assuming this is for adding esptool.py for flashing, then +1 for this effort.

@igrr igrr closed this Oct 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants